﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using TyMES.Model.Record;


namespace TyMES.ViewModel.Record.AlarmLogRecordVMs
{
    public partial class AlarmLogRecordBatchVM : BaseBatchVM<AlarmLogRecord, AlarmLogRecord_BatchEdit>
    {
        public AlarmLogRecordBatchVM()
        {
            ListVM = new AlarmLogRecordListVM();
            LinkedVM = new AlarmLogRecord_BatchEdit();
        }

    }

	/// <summary>
    /// Class to define batch edit fields
    /// </summary>
    public class AlarmLogRecord_BatchEdit : BaseVM
    {
        [Display(Name = "报警时间")]
        public DateTime? warningTime { get; set; }
        [Display(Name = "产线编号")]
        public String lineCode { get; set; }
        [Display(Name = "工位号")]
        public String stationCode { get; set; }
        [Display(Name = "工序号")]
        public String operationCode { get; set; }
        [Display(Name = "设备号")]
        public String machineCode { get; set; }
        [Display(Name = "报警代码")]
        public String warningCode { get; set; }
        [Display(Name = "报警类型")]
        public String warningType { get; set; }
        [Display(Name = "报警详情")]
        public String warningDesc { get; set; }

        protected override void InitVM()
        {
        }

    }

}
